Method and apparatus for displaying candidate word, and graphical user interface

ABSTRACT

Embodiments of the present invention relate to the field of terminal technologies, and provide a method and an apparatus for displaying a candidate word, and a graphical user interface to improve efficiency of a user in entering information by using an input method. The method is applied to a scenario in which a user enters information by using an input method. The method includes: determining a type of an application that invokes the input method; determining, according to the type, dimension information corresponding to the type; determining, according to the dimension information, a lexicon corresponding to the dimension information; and displaying, in a default candidate option area of the input method, at least one candidate word that is in the lexicon and meets a preset condition.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/313,010, filed on Dec. 22, 2018, which is a national stage ofInternational Application No. PCT/CN2016/086786, filed on Jun. 22, 2016.All of the afore-mentioned patent applications are hereby incorporatedby reference in their entireties.

TECHNICAL FIELD

The present invention relates to the field of terminal technologies, andin particular, to a method and an apparatus for displaying a candidateword, and a graphical user interface.

BACKGROUND

With continuous development of terminal technologies, intelligentterminals are applied more widely. On an intelligent terminal, mostinformation is entered by using an input method. Therefore, the inputmethod becomes an essential application on the intelligent terminal, andimproving efficiency of a user in entering information by using theinput method also becomes a problem to be resolved urgently.

Generally, to improve efficiency of a user in entering information byusing an input method, when the user enters information by using theinput method, a display interface of the input method provides acandidate option area for the user. The candidate option area includessome candidate options recommended by the input method to the user.Before the user starts to enter information, the candidate option areais referred to as a default candidate option area. FIG. 1 (a) and FIG. 1(b) are schematic diagrams of default candidate option areas provided bytwo input methods respectively. In FIG. 1 (a), default candidate optionarea A provided by an input method includes a toolbar of the inputmethod, for example, an emoticon and setting of the input method. InFIG. 1 (b), default candidate option area A provided by an input methodincludes some words that are frequently entered by most users accordingto statistics of the input method.

In FIG. 1 (a), the default candidate option area provided by the inputmethod can recommend only the toolbar of the input method to the user,but the toolbar of the input method is not used frequently. In FIG. 1(b), the default candidate option area provided by the input method canrecommend only the words frequently entered by most users to the user,but this may not be applicable to individual users. Therefore, thedefault candidate option areas provided by the two input methods are nothelpful for improving efficiency of the user in entering information byusing the input methods.

SUMMARY

This application provides a method and an apparatus for displaying acandidate word, and a graphical user interface to improve efficiency ofa user in entering information by using an input method.

To achieve the foregoing objective, the following technical solutionsare used in this application:

According to a first aspect, a graphical user interface on a computerdevice is provided, where the computer device has a display, atouch-sensitive surface, a memory, and one or more processors configuredto execute one or more programs stored in the memory, and the graphicaluser interface includes an application interface, an input box, and aninput method interface, where

-   -   in response to detecting that a user triggers a first        application, an application interface and a first input box of        the first application are displayed; in response to detecting        that the user selects the first input box, a first input method        interface is displayed, where a default candidate option area of        the first input method interface includes a first group of        default candidate words; in response to detecting that the user        triggers a second application, an application interface and a        second input box of the second application are displayed; when        in response to detecting that the user selects the second input        box, a second input method interface is displayed, where a        default candidate option area of the second input method        interface includes a second group of default candidate words;        and the first application and the second application are        different applications, and the first group of default candidate        words and the second group of default candidate words include        different candidate words.

In an optional implementation of the first aspect, a type of the firstapplication is a chat type, a map type, a commodity type, an audio/videotype, or an application market type; and a type of the secondapplication is the chat type, the map type, the commodity type, theaudio/video type, or the application market type.

In another optional implementation of the first aspect, the first groupof default candidate words is updated content in a clipboard; and/or thesecond group of default candidate words is updated content in aclipboard.

On the graphical user interface provided by this application, when theuser triggers different applications, because input method interfacesdisplayed when input boxes on different application interfaces areselected may include different default candidate words, it may beensured to some extent that the default candidate words may be wordsthat the user needs to enter in an input box; and further, the defaultcandidate words are displayed in a default candidate option area of theinput method. This can improve efficiency of the user in enteringinformation by using the input method.

According to a second aspect, a graphical user interface on a computerdevice is provided, where the computer device has a display, atouch-sensitive surface, a memory, and one or more processors configuredto execute one or more programs stored in the memory, and the graphicaluser interface includes an application interface, an input box, and aninput method interface, where

-   -   in response to detecting that a user triggers content copying,        copied content is selected and displayed; in response to        detecting that the user triggers an application, an application        interface and an input box of the application are displayed; and        in response to detecting that the user selects the input box, an        input method interface is displayed, where a default candidate        option area of the input method interface includes a group of        default candidate words, and the group of default candidate        words is the copied content.

On the graphical user interface provided by this application, after theuser triggers an intelligent terminal to copy a piece of content, theuser may continue to trigger the intelligent terminal to paste thecopied content. Therefore, in this application, after the user triggersthe intelligent terminal to perform copying, when the user triggers anapplication, because an input method interface displayed when an inputbox on an application interface of the application is selected mayinclude the content that the user triggers the intelligent terminal tocopy, the content that the user triggers the intelligent terminal tocopy is displayed in a default candidate option area of the inputmethod. This can improve efficiency of the user in entering informationby using the input method.

According to a third aspect, a method for displaying a candidate word isprovided, where the method is applied to a scenario in which a userenters information by using an input method, and the method includes:determining a type of an application that invokes the input method;determining, according to the type, dimension information correspondingto the type; determining, according to the dimension information, alexicon corresponding to the dimension information; and displaying, in adefault candidate option area of the input method, at least onecandidate word that is in the lexicon and meets a preset condition.

In the method for displaying a candidate word according to thisapplication, when the candidate word is displayed in the defaultcandidate option area of the input method, reference may be made to anapplication scenario of the input method, that is, by which type ofapplication the input method is invoked, then the correspondingdimension information is determined according to the type of theapplication, and the lexicon corresponding to the dimension informationis determined, that is, the lexicon is a lexicon that matches theapplication scenario of the input method. Therefore, it may be ensuredto some extent that candidate words determined from the lexicon may bewords that the user needs to enter, and further, the candidate words aredisplayed in the default candidate option area of the input method. Thiscan improve efficiency of the user in entering information by using theinput method.

In an optional implementation of the third aspect, the determining,according to the type, dimension information corresponding to the typemay include: determining, according to the type and a presetcorrespondence set, the dimension information corresponding to the type,where the correspondence set includes a correspondence between the typeand the dimension information.

For example, the type of the application may include a chat type, a maptype, a commodity type, an audio/video type, or an application markettype. Dimension information corresponding to the types may bespecifically as follows: Dimension information corresponding to the chattype may be a date dimension, or a date dimension and a chat objectdimension; dimension information corresponding to the map type may be ahistorical record dimension; and dimension information corresponding tothe commodity type, the audio/video type, or the application market typemay be a historical record dimension and/or a search popularitydimension.

In another optional implementation of the third aspect, before thedetermining a type of an application that invokes the input method, themethod for displaying a candidate option according to this applicationmay further include: determining that content in a clipboard is updated;and displaying, in the default candidate option area of the inputmethod, updated content in the clipboard as the at least one candidateword.

When the user triggers a copying process, the user may need to use theinput method to paste copied content. Therefore, in the method fordisplaying a candidate word according to this application, the candidateword displayed in the default candidate option area of the input methodmay be determined according to whether the content in the clipboard isupdated. That is, if the content in the clipboard is updated, theupdated content in the clipboard may be displayed in the defaultcandidate option area of the input method (that is, the updated contentin the clipboard is displayed as the at least one candidate word in thedefault candidate option area of the input method). Therefore,efficiency of the user in entering information by using the input methodcan be further improved.

According to a fourth aspect, a method for displaying a candidate wordis provided, where the method is applied to a scenario in which a userenters information by using an input method, and the method includes:determining that content in a clipboard is updated; and displaying, in adefault candidate option area of the input method, updated content inthe clipboard as at least one candidate word.

After the user copies a piece of content, the user may paste the copiedcontent. Therefore, in this application, if it is determined that thecontent in the clipboard is updated, the updated content in theclipboard may be displayed in the default candidate option area of theinput method (that is, the updated content in the clipboard is displayedas the at least one candidate word in the default candidate option areaof the input method). Therefore, efficiency of the user in enteringinformation by using the input method can be improved.

According to a fifth aspect, an apparatus for displaying a candidateword is provided, where the apparatus is applied to a scenario in whicha user enters information by using an input method, and the apparatusincludes a lexicon selection module and a default candidate optionmodule.

The lexicon selection module is configured to determine a type of anapplication that invokes the input method, determine, according to thetype, dimension information corresponding to the type, and determine,according to the dimension information, a lexicon corresponding to thedimension information; and the default candidate option module isconfigured to display, in a default candidate option area of the inputmethod, at least one candidate word that is in the lexicon selected bythe lexicon selection module and meets a preset condition.

In an optional implementation of the fifth aspect, the lexicon selectionmodule is specifically configured to determine, according to the type ofthe application that invokes the input method and a presetcorrespondence set, the dimension information corresponding to the type,where the correspondence set includes a correspondence between the typeand the dimension information.

In another optional implementation of the fifth aspect, the lexiconselection module is further configured to determine, before determiningthe type of the application that invokes the input method, that contentin a clipboard is updated; and the default candidate option module isfurther configured to display, in the default candidate option area ofthe input method, updated content in the clipboard as the at least onecandidate word.

For detailed descriptions about technical effects of the fifth aspectand each optional implementation of the fifth aspect, refer to thedescriptions about the technical effects of the third aspect and eachoptional implementation of the third aspect. Details are not furtherdescribed herein.

According to a sixth aspect, an apparatus for displaying a candidateword is provided, where the apparatus is applied to a scenario in whicha user enters information by using an input method, and the apparatusincludes a lexicon selection module and a default candidate optionmodule.

The lexicon selection module is configured to determine that content ina clipboard is updated; and the default candidate option module isconfigured to display, in a default candidate option area of the inputmethod, updated content in the clipboard as at least one candidate wordaccording to a result determined by the lexicon selection module.

For detailed descriptions about technical effects of the sixth aspect,refer to the descriptions about the technical effects of the fourthaspect. Details are not further described herein.

In the third aspect to the sixth aspect, one lexicon uniquelycorresponds to one piece of dimension information.

For example, the date dimension uniquely corresponds to the datelexicon; the chat object dimension uniquely corresponds to the chatobject lexicon; the historical record dimension uniquely corresponds tothe historical record lexicon; and the search popularity dimensionuniquely corresponds to the search popularity lexicon.

In this application, if the dimension information corresponding to thetype of the application that invokes the input method is the datedimension, the candidate word can be determined only in the date lexiconuniquely corresponding to the date dimension; if the dimensioninformation corresponding to the type of the application that invokesthe input method is the chat object dimension, the candidate word can bedetermined only in the chat object lexicon uniquely corresponding to thechat object dimension; if the dimension information corresponding to thetype of the application that invokes the input method is the historicalrecord dimension, the candidate word can be determined only in thehistorical record lexicon uniquely corresponding to the historicalrecord dimension; or if the dimension information corresponding to thetype of the application that invokes the input method is the searchpopularity dimension, the candidate word can be determined only in thesearch popularity lexicon uniquely corresponding to the searchpopularity dimension. Therefore, when the input method is applied todifferent application scenarios, it may be ensured to some extent thatcandidate words determined from the corresponding lexicon may be thewords that the user needs to enter, and further, the candidate words aredisplayed in the default candidate option area of the input method. Thiscan further improve efficiency of the user in entering information byusing the input method.

In the third aspect to the sixth aspect, the type of the applicationthat invokes the input method is the chat type, the dimensioninformation is the date dimension, the lexicon is the date lexiconcorresponding to the date dimension, and the at least one candidate wordthat meets the preset condition is: at least one candidate word that isin the date lexicon and corresponds to a first date, where the firstdate is a date that is in the date lexicon and the same as a currentdate.

In the third aspect to the sixth aspect, the type of the applicationthat invokes the input method is the chat type, the dimensioninformation is the date dimension and the chat object dimension, thelexicon is the date lexicon corresponding to the date dimension and thechat object lexicon corresponding to the chat object dimension, and theat least one candidate word that meets the preset condition is: at leastone candidate word that is in the date lexicon and corresponds to afirst date, where the first date is a date that is in the date lexiconand the same as a current date, a binding relationship exists betweenthe first date and a first relationship, and a relationship between theuser and an object currently chatting with the user is the firstrelationship in the chat object lexicon.

In the third aspect to the sixth aspect, the type of the applicationthat invokes the input method is the map type, the dimension informationis the historical record dimension, the lexicon is the historical recordlexicon corresponding to the historical record dimension, and the atleast one candidate word that meets the preset condition is: at leastone candidate word that is in the historical record lexicon andcorresponds to first latitude and longitude and the application, wherethe first latitude and longitude are latitude and longitude that are inthe historical record lexicon and the same as latitude and longitude ofa current location of the user.

In the third aspect to the sixth aspect, the type of the applicationthat invokes the input method is the commodity type, the audio/videotype, or the application market type, the dimension information is thehistorical record dimension and/or the search popularity dimension, thelexicon is the historical record lexicon corresponding to the historicalrecord dimension and the search popularity lexicon corresponding to thesearch popularity dimension, and the at least one candidate word thatmeets the preset condition is: at least one candidate word that is inthe historical record lexicon and the search popularity lexicon andcorresponds to the application, and whose search frequency is highest,and whose last search date is closest to a current date.

When the dimension information is the historical record dimension, thelexicon is the historical record lexicon; in this case, the at least onecandidate word that meets the preset condition is: at least onecandidate word that is in the historical record lexicon and correspondsto the application, and whose search frequency is highest, and whoselast search date is closest to the current date. When the dimensioninformation is the search popularity dimension, the lexicon is thesearch popularity lexicon; in this case, the at least one candidate wordthat meets the preset condition is: at least one candidate word that isin the search popularity lexicon and corresponds to the application, andwhose search frequency is highest, and whose last search date is closestto the current date. When the dimension information is the historicalrecord dimension and the search popularity dimension, the lexicon is thehistorical record lexicon and the search popularity lexicon; in thiscase, the at least one candidate word that meets the preset conditionis: at least one candidate word that is in the historical record lexiconand the search popularity lexicon and corresponds to the application,and whose search frequency is highest, and whose last search date isclosest to the current date.

In the third aspect to the sixth aspect, when multiple pieces ofdimension information correspond to a type of an application, each ofthe multiple pieces of dimension information corresponds to one lexicon;in this case, according to weights preset for the multiple pieces ofdimension information, several candidate words may be determined fromthe lexicon corresponding to each piece of dimension information.Therefore, candidate words displayed in the default candidate optionarea of the input method may be determined with reference to themultiple pieces of dimension information. Therefore, the determinedcandidate words can better meet an input requirement of the user, andefficiency of the user in entering information by using the input methodmay be further improved.

According to a seventh aspect, an intelligent terminal is provided,where the intelligent terminal includes at least one processor, aninterface circuit, a memory, and a system bus. The memory is configuredto store a computer-executable instruction, the at least one processor,the interface circuit, and the memory are interconnected by the systembus, and when the intelligent terminal runs, the at least one processorexecutes the computer-executable instruction stored in the memory, sothat the intelligent terminal performs the method for displaying acandidate word according to any one of the third aspect or each optionalimplementation of the third aspect.

According to an eighth aspect, a computer-readable storage medium isprovided, where the computer-readable storage medium stores one or moreprograms, the one or more programs include a computer-executableinstruction, and when at least one processor of an intelligent terminalexecutes the computer-executable instruction, the intelligent terminalperforms the method for displaying a candidate word according to any oneof the third aspect or each optional implementation of the third aspect.

For detailed descriptions about technical effects of the seventh aspectand the eighth aspect, refer to the descriptions about the technicaleffects of the third aspect. Details are not further described herein.

According to a ninth aspect, an intelligent terminal is provided, wherethe intelligent terminal includes at least one processor, an interfacecircuit, a memory, and a system bus. The memory is configured to store acomputer-executable instruction, the at least one processor, theinterface circuit, and the memory are interconnected by the system bus,and when the intelligent terminal runs, the at least one processorexecutes the computer-executable instruction stored in the memory, sothat the intelligent terminal performs the method for displaying acandidate word according to any one of the fourth aspect or eachoptional implementation of the fourth aspect.

According to a tenth aspect, a computer-readable storage medium isprovided, where the computer-readable storage medium stores one or moreprograms, the one or more programs include a computer-executableinstruction, and when at least one processor of an intelligent terminalexecutes the computer-executable instruction, the intelligent terminalperforms the method for displaying a candidate word according to any oneof the fourth aspect or each optional implementation of the fourthaspect.

For detailed descriptions about technical effects of the ninth aspectand the tenth aspect, refer to the descriptions about the technicaleffects of the fourth aspect. Details are not further described herein.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention or in the prior art more clearly, the following brieflyintroduces the accompanying drawings required for describing theembodiments or the prior art. Apparently, the accompanying drawings inthe following description show merely some embodiments of the presentinvention.

FIG. 1 is a schematic diagram of candidate words displayed in a defaultcandidate option area of an input method according to the prior art;

FIG. 2 is a schematic structural diagram of an input method according toan embodiment of the present invention;

FIG. 3 is a schematic diagram of a candidate option area and a defaultcandidate option area of an input method according to an embodiment ofthe present invention;

FIG. 4 is a schematic diagram 1 of a method for displaying a candidateword according to an embodiment of the present invention;

FIG. 5 is a schematic diagram 1 of candidate words displayed in adefault candidate option area of an input method according to anembodiment of the present invention;

FIG. 6 is a schematic diagram 2 of candidate words displayed in adefault candidate option area of an input method according to anembodiment of the present invention;

FIG. 7 is a schematic diagram 3 of candidate words displayed in adefault candidate option area of an input method according to anembodiment of the present invention;

FIG. 8 is a schematic diagram 4 of candidate words displayed in adefault candidate option area of an input method according to anembodiment of the present invention;

FIG. 9 is a schematic diagram 2 of a method for displaying a candidateword according to an embodiment of the present invention;

FIG. 10 is a schematic diagram 5 of candidate words displayed in adefault candidate option area of an input method according to anembodiment of the present invention;

FIG. 11 is a schematic diagram 1 of another method for displaying acandidate word according to an embodiment of the present invention;

FIG. 12 is a schematic diagram 2 of another method for displaying acandidate word according to an embodiment of the present invention;

FIG. 13 is a schematic diagram of an apparatus for displaying acandidate word according to an embodiment of the present invention;

FIG. 14 is a schematic diagram of hardware of a smartphone according toan embodiment of the present invention;

FIG. 15 is a schematic diagram 1 of a graphical user interface accordingto an embodiment of the present invention; and

FIG. 16 is a schematic diagram 2 of a graphical user interface accordingto an embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The term “and/or” in this specification describes only an associationrelationship for describing associated objects and represents that threerelationships may exist. For example, A and/or B may represent thefollowing three cases: Only A exists, both A and B exist, and only Bexists. The character “I” in this specification indicates an “or”relationship between the associated objects. For example, A/B indicatesA or B.

In the specification and claims of the present invention, the term“first” is used to indicate a corresponding object but does not indicatea particular order of described objects. For example, a first date isused to indicate a corresponding date instead of describing acharacteristic date sequence.

In the embodiments of the present invention, terms such as “an example”or “for example” are used to represent examples, illustrations, orexplanations. Any embodiment or design solution described as “anexample” or “for example” in the embodiments of the present inventionshall not be interpreted to be more preferential or advantageous thanother embodiments or design solutions. Specifically, the terms such as“an example” or “for example” are intended to present related conceptsin a specific manner.

In descriptions of the present invention, “multiple” means two or morethan two unless otherwise specified. For example, multiple pieces ofdimension information are two or more than two pieces of dimensioninformation.

The following describes the technical solutions in the embodiments ofthe present invention in detail with reference to the accompanyingdrawings in the embodiments of the present invention. Apparently, thedescribed embodiments are merely some but not all of the embodiments ofthe present invention.

A method and an apparatus for displaying a candidate word, and agraphical user interface provided by the embodiments of the presentinvention may be applied to an intelligent terminal. In a scenario inwhich a user needs to enter information by using an input method,according to the method and apparatus for displaying a candidate word,and the graphical user interface provided by the embodiments of thepresent invention, at least one candidate word is displayed in a defaultcandidate option area of the input method. In this way, some words thatthe user may need to enter are recommended to the user, and therefore,efficiency of the user in entering information by using the input methodcan be improved.

In the embodiments of the present invention, a candidate word mayinclude a single character or multiple characters. For example, assumingthat a language of the input method is Chinese, a candidate word mayinclude a single Chinese character, a word formed by multiple Chinesecharacters, a phrase formed by multiple Chinese words, a sentence formedby multiple Chinese characters, or the like. Specifically, this may bedetermined according to an actual use requirement, and is not limited inthe present invention.

As shown in FIG. 2, FIG. 2 is a schematic diagram of an implementationof an input method (also referred to as an input method application)according to an embodiment of the present invention. In FIG. 2, theinput method includes an input method engine 10, a candidate optionmodule 11, and a default candidate option recommendation module 12. Thedefault candidate option recommendation module 12 may include a lexiconselection module 120 and a default candidate option module 121. In aspecific implementation, the candidate option module 11 and the defaultcandidate option module 121 may be two different modules, but the twodifferent modules may be implemented by using same program code.Certainly, the candidate option module 11 and the default candidateoption module 121 may also be implemented by using one module, that is,the two modules may be integrated in the implementation (as shown by adashed line box in FIG. 2). Specifically, this may be determinedaccording to an actual use requirement, and is not limited in thepresent invention.

The following describes each module of the input method shown in FIG. 2by using examples.

The input method engine is configured to search, according to acharacter string (namely, a character string entered in an input textbox by a user by using the input method) captured from an input text boxin the input method, a lexicon (including a system lexicon and a userlexicon) for a character or a word corresponding to the characterstring, and transmit the character or the word to the candidate optionmodule.

The system lexicon is a lexicon preset in the input method, namely, adefault lexicon in the input method. For the user lexicon, in a processof entering information by the user by using the input method, if acharacter or a word entered by the user does not exist in the systemlexicon, the character or the word may be stored in the user lexicon,that is, the user lexicon is a lexicon generated in the process ofentering information by the user by using the input method.

The candidate option module is configured to display, in a candidateoption area of the input method, the character or the word transmittedby the input method engine.

The lexicon selection module is configured to determine a type of anapplication that invokes the input method, determine, according to thetype, dimension information corresponding to the type, determine,according to the dimension information, a lexicon corresponding to thedimension information (including a user lexicon corresponding to eachpiece of dimension information when there are multiple pieces ofdimension information), and then search the lexicon for at least onecandidate word that meets a preset condition, and transmit the at leastone candidate word to the default candidate option module.

In this embodiment of the present invention, a type of an applicationcorresponds to one or more pieces of dimension information, and onepiece of dimension information uniquely corresponds to one lexicon. Thelexicon corresponding to each piece of dimension information may be thesystem lexicon, or may be the user lexicon. Specifically, this may bedetermined according to an actual use requirement, and is not limited inthis embodiment of the present invention.

For example, if the type of the application that invokes the inputmethod, determined by the lexicon selection module, is a chat type (thatis, the application is an application of the chat type), the dimensioninformation corresponding to the chat type is a date dimension, or is adate dimension and a chat object dimension; and the lexiconcorresponding to the date dimension is a date lexicon, and the lexiconcorresponding to the chat object dimension is a chat object lexicon. Thedate lexicon may store each holiday and greetings corresponding to eachholiday; because each holiday in a year is basically determined, thedate lexicon may be the system lexicon (that is, the date lexicon may bethe preset lexicon). The chat object lexicon may store a specificrelationship between users that use the application and some specificusers. Because the users that use the application are different, and thespecific users having the specific relationship with the users are alsodifferent, the chat object lexicon may be the user lexicon (that is, thechat object lexicon may be the lexicon generated in the process ofentering information by the user by using the input method).

The default candidate option module is configured to display, in thecandidate option area of the input method, the at least one candidateword transmitted by the lexicon selection module, where the candidateoption area is also referred to as a default candidate option area whenno input information of the user is captured.

For example, as shown in FIG. 3 (a), area A is referred to as acandidate option area in this case. As shown in FIG. 3 (b), area A isreferred to as a default candidate option area in this case.

A method for displaying a candidate word according to this embodiment ofthe present invention may be performed by an apparatus for displaying acandidate word (referred to as a display apparatus for ease ofdescription in all the following method embodiments). The displayapparatus may be an independent functional module that can implement themethod; or may be an input method application; or may be a functionalmodule that is integrated with an input method application and canimplement the method; or may be an intelligent terminal; or may be afunctional module that is integrated with an intelligent terminal andcan implement the method. Specifically, this may be determined accordingto an actual use requirement, and is not limited in the presentinvention.

As shown in FIG. 4, an embodiment of the present invention provides amethod for displaying a candidate word. The method is applied to ascenario in which a user enters information by using an input method,and the input method is installed in an operating system of anintelligent terminal. The method may include the following steps.

S101. A display apparatus determines a type of an application thatinvokes an input method.

Generally, when using an application, the user needs to enterinformation by using the input method. For example, when entering shortinformation by using a short message application, the user needs toenter the short information by using the input method.

In this embodiment of the present invention, the application may also bereferred to as an application program (application, APP). Theapplication may be an application included in the operating system ofthe intelligent terminal, or may be a third-party application installedin the operating system of the intelligent terminal. This is notspecifically limited in the present invention.

The type of the application may include a chat type, a map type, acommodity type, an audio/video type, or an application market type. Forexample, the application of the chat type may include a short messageapplication included in the operating system of the intelligentterminal, a third-party communications application installed in theoperating system of the intelligent terminal, or the like. Theapplication of the map type may include a map application included inthe operating system of the intelligent terminal, a third-party mapapplication installed in the operating system of the intelligentterminal, other applications (such as various travel applications ortaxi hailing applications), or the like. The application of thecommodity type may include a shopping application included in theoperating system of the intelligent terminal, a third-party shoppingapplication installed in the operating system of the intelligentterminal, or the like. The application of the audio/video type mayinclude an audio playing application or a video playing applicationincluded in the operating system of the intelligent terminal, an audioplaying application or a video playing application installed in theoperating system of the intelligent terminal, or the like. Theapplication of the application market type may include an applicationstore included in the operating system of the intelligent terminal, theapplication store installed in the operating system of the intelligentterminal, or the like.

S102. The display apparatus determines, according to the type of theapplication, dimension information corresponding to the type of theapplication.

In this embodiment of the present invention, because types ofapplications are different, scenarios in which applications are used mayalso vary. To indicate scenarios in which various applications are used,dimension information is used in this embodiment of the presentinvention.

In a specific implementation, a correspondence between a type of anapplication and dimension information is prestored. For example, for theapplication of the chat type, on a special holiday, when the applicationof the chat type invokes the input method, some candidate words relatedto the special holiday may need to be recommended to the user by using adefault candidate option area of the input method. In this case,dimension information corresponding to the chat type may be related to adate. For example, the dimension information may be a date dimension.For another example, for the application of the commodity type, the usermay search for a commodity after starting the application of the type.This requires that commodities that the user has searched for and/orcommodities that other users are popularly searching for should berecommended to the user. In this case, dimension informationcorresponding to the commodity type may be related to a historicalsearch record and/or a search popularity record of the user. Forexample, the dimension information may be a historical record dimensionand/or a search popularity dimension.

Optionally, in the method for displaying a candidate word according tothis embodiment of the present invention, S102 may specifically include:

S102 a. The display apparatus determines, according to the type of theapplication and a preset correspondence set, the dimension informationcorresponding to the type of the application, where the correspondenceset includes a correspondence between the type of the application andthe dimension information.

The preset correspondence set may include correspondences between typesof multiple applications and dimension information. The correspondencebetween the type of the application and the dimension information inS102 a is only one correspondence in the correspondence set. To helpunderstand the technical solution provided by this embodiment of thepresent invention, herein only the type of the application that invokesthe input method and the dimension information corresponding to the typeare used as an example for description. The rest are not described indetail herein.

For example, as shown in Table 1, Table 1 is an implementation form ofpossible correspondences between types of applications and dimensioninformation according to this embodiment of the present invention.

TABLE 1 Type of an application Dimension information Chat type Datedimension Date dimension and chat object dimension Map type Historicalrecord dimension Commodity type, audio/video Historical record dimensionand/or type, or application market type search popularity dimension

Table 1 may be understood as a preset correspondence set. If the type ofthe application is the chat type, the dimension informationcorresponding to the type is the date dimension, or the date dimensionand the chat object dimension. If the type of the application is the maptype, the dimension information corresponding to the type is thehistorical record dimension. If the type of the application is thecommodity type, the audio/video type, or the application market type,the dimension information corresponding to the type is the historicalrecord dimension and/or the search popularity dimension.

It should be noted that, the types of the applications and the dimensioninformation shown in Table 1 are only illustrative. In a specificimplementation, more types of applications and dimension information,for example, other types of applications and dimension information thatmeet a use requirement, may also be included.

In the method for displaying a candidate word according to thisembodiment of the present invention, because dimension informationcorresponding to the type of each application is preset, after thedisplay apparatus determines the type of the application that invokesthe input method, the display apparatus may determine, according to thetype, the dimension information corresponding to the type. In addition,because each piece of dimension information uniquely corresponds to onelexicon, after determining the dimension information, the displayapparatus may determine, according to the dimension information, alexicon corresponding to the dimension information.

S103. The display apparatus determines, according to the dimensioninformation, a lexicon corresponding to the dimension information.

In this embodiment of the present invention, for each piece of dimensioninformation, a lexicon corresponding to the dimension information may bestored.

Optionally, in this embodiment of the present invention, lexiconscorresponding to the dimension information shown in Table 1 may berespectively as follows: A lexicon corresponding to the date dimensionis a date lexicon; a lexicon corresponding to the chat object dimensionis a chat object lexicon; a lexicon corresponding to the historicalrecord dimension is a historical record lexicon; and a lexiconcorresponding to the search popularity dimension is a search popularitylexicon.

For example, as shown in Table 2, Table 2 is an implementation form ofpossible correspondences between dimension information and lexiconsaccording to this embodiment of the present invention.

TABLE 2 Dimension information Lexicon Date dimension Date lexicon Chatobject dimension Chat object lexicon Historical record dimensionHistorical record lexicon Search popularity dimension Search popularitylexicon

It should be noted that, the dimension information and lexicons shown inTable 2 are only illustrative. In a specific implementation, moredimension information and lexicons, for example, other dimensioninformation and lexicons that meet a use requirement, may also beincluded.

For example, for the dimension information shown in Table 1, thelexicons corresponding to the dimension information in this embodimentof the present invention may be prestored, or may be stored in a processof entering information by the user by using the input method. Forexample, the date lexicon corresponding to the date dimension may beprestored, that is, greetings corresponding to each holiday areprestored in the date lexicon. For another example, the chat objectlexicon corresponding to the chat object dimension may be stored whenthe user chats with a chat object by using the application of the chattype, that is, a relationship between the user and the chat object maybe stored in the chat object lexicon according to a nickname of the chatobject that is set by the user in the application of the chat type,content about which the user chats with the chat object by using theapplication of the chat type, a title frequently used when the userchats with the chat object by using the application of the chat type, orthe like. For still another example, the historical record lexiconcorresponding to the historical record dimension may be stored when theuser uses the application of the map type, the application of thecommodity type, the application of the audio/video type, or theapplication of the application market type, that is, a search record ofthe user may be stored in the historical record lexicon according to asearch record when the user uses the applications of the types.

Optionally, in this embodiment of the present invention, one lexiconuniquely corresponds to one piece of dimension information, that is, thelexicons correspond to the dimension information on a one-to-one basis.

For example, as shown in Table 2, the date dimension uniquelycorresponds to the date lexicon; the chat object dimension uniquelycorresponds to the chat object lexicon; the historical record dimensionuniquely corresponds to the historical record lexicon; and the searchpopularity dimension uniquely corresponds to the search popularitylexicon.

In this embodiment of the present invention, if the dimensioninformation corresponding to the type of the application that invokesthe input method is the date dimension, a candidate word displayed inthe default candidate option area of the input method can be determinedonly in the date lexicon uniquely corresponding to the date dimension;if the dimension information corresponding to the type of theapplication that invokes the input method is the chat object dimension,a candidate word displayed in the default candidate option area of theinput method can be determined only in the chat object lexicon uniquelycorresponding to the chat object dimension; if the dimension informationcorresponding to the type of the application that invokes the inputmethod is the historical record dimension, a candidate word displayed inthe default candidate option area of the input method can be determinedonly in the historical record lexicon uniquely corresponding to thehistorical record dimension; or if the dimension informationcorresponding to the type of the application that invokes the inputmethod is the search popularity dimension, a candidate word displayed inthe default candidate option area of the input method can be determinedonly in the search popularity lexicon uniquely corresponding to thesearch popularity dimension. Therefore, when the input method is appliedto different application scenarios, it may be ensured to some extentthat candidate words determined from the corresponding lexicon may bethe words that the user needs to enter, and further, the candidate wordsare displayed in the default candidate option area of the input method.This can further improve efficiency of the user in entering informationby using the input method.

S104. The display apparatus displays, in a default candidate option areaof the input method, at least one candidate word that is in the lexiconand meets a preset condition.

In this embodiment of the present invention, corresponding to the typeof the application and the dimension information shown in Table 1 andthe dimension information and the lexicon shown in Table 2, the at leastone candidate word that meets the preset condition in S104 may bespecifically as follows:

When the type of the application is the chat type, and the dimensioninformation is the date dimension, and the lexicon is the date lexicon,the at least one candidate word that meets the preset condition is: atleast one candidate word that is in the date lexicon and corresponds toa first date, where the first date is a date that is in the date lexiconand the same as a current date.

When the type of the application is the chat type, and the dimensioninformation is the date dimension and the chat object dimension, and thelexicon is the date lexicon and the chat object lexicon, the at leastone candidate word that meets the preset condition is: at least onecandidate word that is in the date lexicon and corresponds to a firstdate, where the first date is a date that is in the date lexicon and thesame as a current date, a binding relationship exists between the firstdate and a first relationship, and a relationship between the user andan object currently chatting with the user is the first relationship inthe chat object lexicon.

When the type of the application is the map type, and the dimensioninformation is the historical record dimension, and the lexicon is thehistorical record lexicon, the at least one candidate word that meetsthe preset condition is: at least one candidate word that is in thehistorical record lexicon and corresponds to first latitude andlongitude and the application, where the first latitude and longitudeare latitude and longitude that are in the historical record lexicon andthe same as latitude and longitude of a current location of the user.

When the type of the application is the commodity type, the audio/videotype, or the application market type, and the dimension information isthe historical record dimension and/or the search popularity dimension,and the lexicon is the historical record lexicon and/or the searchpopularity lexicon, the at least one candidate word that meets thepreset condition is: at least one candidate word that is in thehistorical record lexicon and/or the search popularity lexicon andcorresponds to the application, and whose search frequency is highest,and whose last search date is closest to a current date.

In the foregoing types of applications, descriptions about the at leastone candidate word that meets the preset condition are only illustrativedescriptions about the listed types of applications in this embodimentof the present invention. Certainly, in an actual implementation, moretypes of applications may be included. Correspondingly, as the type ofthe application varies, the at least one candidate word that meets thepreset condition in this embodiment of the present invention may also bedifferent. Details are not further described exhaustively in thisembodiment of the present invention.

Corresponding to the lexicons shown in Table 2, the following describesthe several lexicons separately by using examples.

For example, as shown in Table 3, Table 3 is a possible implementationform of the date lexicon according to this embodiment of the presentinvention.

TABLE 3 Date or holiday name Candidate word Spring Festival (February 8)Happy Spring Festival Valentine's Day (February 14) Happy Valentine'sDay Mother's Day (May 8) Happy Mother's Day and good health

In an actual application, dates of some holidays are fixed every year.For example, generally, Valentine's Day is February 14 every year.However, dates of some holidays may change every year. For example, theSpring Festival is February 19 in 2015, but is February 18 in 2016;Mother's Day is May 10 in 2015, but is May 8 in 2016. Therefore, datesin the date lexicon in this embodiment of the present invention may beimplemented by using specific dates, or may be implemented by usingholiday names. When a date in the date lexicon is implemented by using aspecific date, the date lexicon may be updated at least once every year,and the display apparatus may determine a corresponding candidate worddirectly according to the date when performing S104. When a date in thedate lexicon is implemented by using a holiday name, when performing theforegoing S104, the display apparatus needs to first determine whetherthe current date is a date corresponding to the holiday name in a yearto which the current date belongs, and if yes, the display apparatusdetermines a corresponding candidate word according to the holiday name.

The date and holiday name are only two implementations illustrated inthis embodiment of the present invention. Because the holiday namegenerally also corresponds to the date, in this embodiment of thepresent invention, the date used when the at least one candidate wordthat meets the preset condition is determined may also be indicated bythe holiday name. This is not specifically limited in the presentinvention.

For example, for the application of the chat type, assuming that thecurrent date is Feb. 8, 2016, the at least one candidate word that meetsthe preset condition is: a candidate word that is in the date lexiconshown in Table 3 and corresponds to February 8, namely, “Happy SpringFestival”. February 8 (namely, the first date) is a date that is in thedate lexicon shown in Table 3 and the same as the current date.Therefore, when the user chats with a friend of the user by using theapplication of the chat type on February 8, that is, when theapplication of the chat type invokes the input method, the displayapparatus may display the foregoing “Happy Spring Festival” in thedefault candidate option area of the input method.

It may be understood that, as shown in FIG. 5, in the method fordisplaying a candidate word according to this embodiment of the presentinvention, assuming that it is the Spring Festival, when the user chatswith a chat object by using the application of the chat type, that is,when the application of the chat type invokes the input method, thedisplay apparatus may display candidate words such as “Happy SpringFestival and good fortune” in the default candidate option area of theinput method.

Table 3 shows an example in which the Spring Festival is only one day.In an actual implementation, the Spring Festival may be a period of time(for example, the first day in the first lunar month to the fifteenthday in the first lunar month). Therefore, in all the fifteen days, thedisplay apparatus may display the foregoing candidate word in thedefault candidate option area of the input method.

It should be noted that, the date lexicon shown in Table 3 is onlyillustrative. In a specific implementation, the date lexicon may furtherinclude more dates or holiday names and candidate words, for example,other dates or holiday names and candidate words that meet a userequirement.

For example, as shown in Table 4, Table 4 is a possible implementationform of the chat object lexicon according to this embodiment of thepresent invention.

TABLE 4 Chat object Relationship with the user User 1 Lovers User 2Mother and son User 3 Friends

For example, for the application of the chat type, assuming that thecurrent date is Feb. 14, 2016, and that the object chatting with theuser is the user 1, the at least one candidate word that meets thepreset condition is: a candidate word that is in the date lexicon shownin Table 3 and corresponds to February 14, namely, “Happy Valentine'sDay”. February 14 (namely, the first date) is a date that is in the datelexicon shown in Table 3 and the same as the current date, a bindingrelationship exists between February 14 and “lovers” (namely, the firstrelationship), and a relationship between the user and the user 1 is“lovers” in the chat object lexicon shown in Table 4. Therefore, whenthe user chats with the user 1 by using the application of the chat typeon February 14, that is, when the application of the chat type invokesthe input method, the display apparatus may display the foregoing “HappyValentine's Day” in the default candidate option area of the inputmethod.

It may be understood that, as shown in FIG. 6, in the method fordisplaying a candidate word according to this embodiment of the presentinvention, assuming that it is Mother's Day, when the user chats withthe user's mother by using the application of the chat type, that is,when the application of the chat type invokes the input method, thedisplay apparatus may display candidate words such as “Happy Mother'sDay and good health” in the default candidate option area of the inputmethod.

In a specific implementation, a chat object column (namely, the user 1,the user 2, and the user 3) in the chat object lexicon shown in Table 4may be represented by the nickname of the chat object set by the user inthe application of the chat type, the title frequently used when theuser chats with the chat object by using the application of the chattype, or the like. Specifically, this may be set according to an actualuse requirement, and is not limited in the present invention.

It should be noted that, the chat object lexicon shown in Table 4 isonly illustrative. In a specific implementation, the chat object lexiconmay further include more chat objects and relationships between the chatobjects and the user, for example, other chat objects and relationshipsbetween the chat objects and the user that meet a use requirement.

For example, as shown in Table 5, Table 5 is a possible implementationform of the historical record lexicon according to this embodiment ofthe present invention.

TABLE 5 Quantity of days from a Quantity last search LatitudeApplication Candidate of date to a and name word searches current datelongitude Application 1 Coffee 5 Less than 1 — Application 1 Router 2 3— Application 2 Coffee 4 Less than 1 — Application 2 Sweater 6 2 —Application 3 Great Wild 3 5 Latitude and Goose Pagoda longitude 1Application 3 Confucius 1 30  Latitude and Temple longitude 2Application 4 Confucius 1 16  Latitude and Temple longitude 2Application 1 Mobile power 4 2 — pack

In this embodiment of the present invention, because the historicalrecord lexicon records historical search records corresponding tomultiple applications, when a candidate word is determined from thehistorical record lexicon, it is further necessary to determine whichapplication the application invoking the input method is (specifically,this may be implemented by performing S101).

For example, for the application of the map type, assuming that thelatitude and longitude of the current location of the user are thelatitude and longitude 2, and that the application that invokes theinput method is the application 3, the at least one candidate word thatmeets the preset condition is: a candidate word that is in thehistorical record lexicon shown in Table 5 and corresponds to thelatitude and longitude 2 and the application 3, namely, “ConfuciusTemple”. The latitude and longitude 2 (namely, the first latitude andlongitude) are latitude and longitude that are in the historical recordlexicon and the same as the latitude and longitude of the currentlocation of the user. Therefore, when the user at the location indicatedby the latitude and longitude 2 uses the application 3 to search for adestination, that is, when the application 3 invokes the input method,the display apparatus may display the foregoing “Confucius Temple” inthe default candidate option area of the input method.

It may be understood that, as shown in FIG. 7, in the method fordisplaying a candidate word according to this embodiment of the presentinvention, assuming that the user is in a city, when the user searchesfor a destination by using the application of the map type, that is,when the application of the map type invokes the input method, thedisplay apparatus may display, in the default candidate option area ofthe input method, names of destinations to which the user has been inthe city, for example, candidate words “Great Wild Goose Pagoda andTerracotta Warriors”.

It should be noted that, the historical record lexicon shown in Table 5is only illustrative. In a specific implementation, the historicalrecord lexicon may further include more application names, candidatewords, quantity of searches, quantity of days from a last search date toa current date, and latitude and longitude, for example, otherapplication names, candidate words, quantity of searches, quantity ofdays from a last search date to a current date, and latitude andlongitude that meet a use requirement.

For example, as shown in Table 6, Table 6 is a possible implementationform of the search popularity lexicon according to this embodiment ofthe present invention.

TABLE 6 Quantity of days from a Quantity last search ApplicationCandidate of date to a name word searches current date Application 1Coffee 20000 2 Application 1 Router 31000 Less than 1 Application 2Mobile power 120000 Less than 1 pack

For example, for the application of the commodity type, the applicationof the audio/video type, or the application of the application markettype, if the lexicon corresponding to the application of the type is thehistorical record lexicon, assuming that the application that invokesthe input method is the application 1, the at least one candidate wordthat meets the preset condition is: a candidate word that is in thehistorical record lexicon shown in Table 5 and corresponds to theapplication 1, and whose search frequency is highest, and whose lastsearch date is closest to the current date, namely, “coffee”. Therefore,when the user searches for a commodity by using the application 1, thatis, when the application 1 invokes the input method, the displayapparatus may display the foregoing “coffee” in the default candidateoption area of the input method.

For the application of the commodity type, the application of theaudio/video type, or the application of the application market type, ifthe lexicon corresponding to the application of the type is the searchpopularity lexicon, assuming that the application that invokes the inputmethod is the application 1, the at least one candidate word that meetsthe preset condition is: a candidate word that is in the searchpopularity lexicon shown in Table 6 and corresponds to the application1, and whose search frequency is highest, and whose last search date isclosest to the current date, namely, “router”. Therefore, when the usersearches for a commodity by using the application 1, that is, when theapplication 1 invokes the input method, the display apparatus maydisplay the foregoing “router” in the default candidate option area ofthe input method.

For the application of the commodity type, the application of theaudio/video type, or the application of the application market type, ifthe lexicon corresponding to the application of the type is thehistorical record lexicon and the search popularity lexicon, assumingthat the application that invokes the input method is the application 1,the at least one candidate word that meets the preset condition is: acandidate word that is in the historical record lexicon shown in Table 5and corresponds to the application 1, and whose search frequency ishighest, and whose last search date is closest to the current date, anda candidate word that is in the search popularity lexicon shown in Table6 and corresponds to the application 1, and whose search frequency ishighest, and whose last search date is closest to the current date,namely, “coffee” and “router”. Therefore, when the user searches for acommodity by using the application 1, that is, when the application 1invokes the input method, the display apparatus may display theforegoing “coffee” and “router” in the default candidate option area ofthe input method.

It may be understood that, as shown in FIG. 8, in the method fordisplaying a candidate word according to this embodiment of the presentinvention, assuming that it is a particular date, the user searches fora commodity by using the application of the commodity type, that is,when the application of the commodity type invokes the input method, thedisplay apparatus may display, in the default candidate option area ofthe input method, names of commodities that the user recently searchesfor most frequently and names of commodities that all users recentlysearch for popularly, for example, candidate words “mobile power pack,router, coffee”.

It should be noted that, the search popularity lexicon shown in Table 6is only illustrative. In a specific implementation, the searchpopularity lexicon may further include more application names, candidatewords, quantity of searches, and quantity of days from a last searchdate to a current date, for example, other application names, candidatewords, quantity of searches, and quantity of days from a last searchdate to a current date that meet a use requirement.

In all the examples illustrated in Table 3 to Table 6, it is assumedthat the candidate word determined by the display apparatus byperforming S104 is one or two candidate words. Specifically, thequantity of candidate words may be determined according to an actual userequirement. For example, the quantity of candidate words may bedetermined according to a size of the default candidate option area ofthe input method and/or a scale of displayed candidate words. This isnot limited in the present invention.

Further, when multiple pieces of dimension information correspond to atype of an application, each of the multiple pieces of dimensioninformation corresponds to one lexicon. In this case, in this embodimentof the present invention, according to weights preset for the multiplepieces of dimension information, the display apparatus may determineseveral candidate words from the lexicon corresponding to each piece ofdimension information. Specifically, the method for determining acandidate word from the lexicon corresponding to each piece of dimensioninformation is the same as the foregoing method for determining acandidate word from a lexicon corresponding to corresponding dimensioninformation. Details are not further described herein.

For example, assuming that two pieces of dimension information, namely,dimension information 1 and dimension information 2, correspond to atype of an application, and a lexicon corresponding to the dimensioninformation 1 is a lexicon 1, and a lexicon corresponding to thedimension information 2 is a lexicon 2, and a weight of the dimensioninformation 1 is 2, and a weight of the dimension information 2 is 3, ifthe default candidate option area of the input method can display fivecandidate words in total, the display apparatus may determine twocandidate words from the lexicon 1, and determine three candidate wordsfrom the lexicon 2. Specifically, this may be determined according to anactual use requirement, and is not limited in the present invention.

In the foregoing method, candidate words displayed in the defaultcandidate option area of the input method may be determined withreference to the multiple pieces of dimension information. Therefore,the determined candidate words can better meet an input requirement ofthe user, and efficiency of the user in entering information by usingthe input method may be further improved.

Further, Table 1 to Table 6 are only examples for describing the methodfor displaying a candidate word according to this embodiment of thepresent invention. In a specific implementation, more attributes orconditions (one column of each table is an attribute or a condition) maybe further included in Table 1 to Table 6. This is not specificallylimited in the present invention.

This embodiment of the present invention provides a method fordisplaying a candidate word. The method is applied to a scenario inwhich a user enters information by using an input method, and the methodincludes: determining a type of an application that invokes the inputmethod; determining, according to the type, dimension informationcorresponding to the type; determining, according to the dimensioninformation, a lexicon corresponding to the dimension information; anddisplaying, in a default candidate option area of the input method, atleast one candidate word that is in the lexicon and meets a presetcondition.

Based on the foregoing method, in the method for displaying a candidateword according to this embodiment of the present invention, when thecandidate word is displayed in the default candidate option area of theinput method, reference may be made to an application scenario of theinput method, that is, by which type of application the input method isinvoked, then the corresponding dimension information is determinedaccording to the type of the application, and the lexicon correspondingto the dimension information is determined, that is, the lexicon is alexicon that matches the application scenario of the input method.Therefore, it may be ensured to some extent that candidate wordsdetermined from the lexicon may be words that the user needs to enter,and further, the candidate words are displayed in the default candidateoption area of the input method. This can improve efficiency of the userin entering information by using the input method.

Optionally, with reference to FIG. 4, as shown in FIG. 9, before S101,the method for displaying a candidate word according to this embodimentof the present invention may further include:

S100 a. The display apparatus determines whether content in a clipboardis updated.

If the display apparatus determines that the content in the clipboard isupdated, the display apparatus performs S100 b. If the display apparatusdetermines that the content in the clipboard is not updated, the displayapparatus performs S101.

S100 b. The display apparatus displays, in the default candidate optionarea of the input method, updated content in the clipboard as at leastone candidate word.

For example, as shown in FIG. 10, FIG. 10 is a schematic diagram ofcandidate words displayed in the default candidate option area of theinput method when the user triggers a copying process. In FIG. 10 (a),the user triggers a copying process, that is, the operating system ofthe intelligent terminal performs a copying action (specifically, theoperating system of the intelligent terminal copies content “Toward theChina dream” that needs to be copied, to a memory of the intelligentterminal, namely, the clipboard). In FIG. 10 (b), when the input methodis invoked for the first time after the copying is completed, thedisplay apparatus may display, in the default candidate option area ofthe input method, the content (namely “Toward the China dream”) in theclipboard. That the input method is invoked for the first time after thecopying is completed may be specifically implemented by performing S100a when the input method is invoked, that is, the display apparatusdetermines whether the content in the clipboard is updated. If thecontent in the clipboard is updated, it indicates that the input methodis invoked for the first time after the copying is completed; or if thecontent in the clipboard is not updated, it indicates that the inputmethod is not invoked for the first time after the copying is completed.

In this embodiment of the present invention, each application installedon the intelligent terminal may access content in the memory of theintelligent terminal.

After the user copies a piece of content, the user may paste the copiedcontent. Therefore, in this embodiment of the present invention, beforeperforming S101, the display apparatus may first determine whether thecontent in the clipboard is updated (generally, if the content in theclipboard is updated, it indicates that the operating system of theintelligent terminal performs a copying action, that is, the usertriggers a copying process; or if the content in the clipboard is notupdated, it indicates that the operating system of the intelligentterminal does not perform a copying action, that is, the user does nottrigger a copying process). If the content in the clipboard is notupdated, the display apparatus performs S101, that is, the displayapparatus determines, according to the application scenario of the inputmethod, the candidate word displayed in the default candidate optionarea of the input method. If the content in the clipboard is updated,the display apparatus may display, in the default candidate option areaof the input method, the updated content in the clipboard as the atleast one candidate word. This can further improve efficiency of theuser in entering the content.

In the method for displaying a candidate word according to thisembodiment of the present invention, the lexicon that matches theapplication scenario may be determined according to the applicationscenario of the input method. Therefore, it may be ensured to someextent that the candidate words determined from the lexicon may be thewords that the user needs to enter. Therefore, the candidate words aredisplayed in the default candidate option area of the input method. Thiscan improve efficiency of the user in entering information by using theinput method.

Further, when the user triggers a copying process, the user may need topaste copied content by using the input method. Therefore, in the methodfor displaying a candidate word according to this embodiment of thepresent invention, when the input method is invoked, the candidate worddisplayed in the default candidate option area of the input method maybe determined according to whether the content in the clipboard isupdated. That is, if the user triggers a copying process, the content inthe clipboard is updated. Therefore, the updated content in theclipboard may be displayed in the default candidate option area of theinput method (that is, the updated content in the clipboard is displayedas the at least one candidate word in the default candidate option areaof the input method). This can further improve efficiency of the user inentering information by using the input method.

As shown in FIG. 11, an embodiment of the present invention provides amethod for displaying a candidate word. The method is applied to ascenario in which a user enters information by using an input method,and the input method is installed in an operating system of anintelligent terminal. The method may include the following steps.

S201. A display apparatus determines that content in a clipboard isupdated.

S202. The display apparatus displays, in a default candidate option areaof an input method, updated content in the clipboard as at least onecandidate word.

For example, as shown in FIG. 10, FIG. 10 is a schematic diagram ofcandidate words displayed in the default candidate option area of theinput method when the user triggers a copying process. Specifically, fordescriptions about FIG. 10, refer to the foregoing descriptions aboutFIG. 10 in the embodiment shown in FIG. 9. Details are not furtherdescribed herein.

After the user copies a piece of content, the user may paste the copiedcontent. Therefore, in this embodiment of the present invention, if thedisplay apparatus determines that the content in the clipboard isupdated, the display apparatus may display, in the default candidateoption area of the input method, the updated content in the clipboard asthe at least one candidate word (to recommend content that the user mayneed to enter to the user). Therefore, efficiency of the user inentering information by using the input method can be improved.

Optionally, with reference to FIG. 11, as shown in FIG. 12, before S201,the method for displaying a candidate word according to this embodimentof the present invention may further include:

S200. The display apparatus determines whether the content in theclipboard is updated.

In this embodiment of the present invention, when the input method isinvoked, the display apparatus may first determine whether the contentin the clipboard is updated (generally, if the content in the clipboardis updated, it indicates that the operating system of the intelligentterminal performs a copying action, that is, the user triggers a copyingprocess; or if the content in the clipboard is not updated, it indicatesthat the operating system of the intelligent terminal does not perform acopying action, that is, the user does not trigger a copying process).Then the display apparatus performs a corresponding action according toa determining result.

Further, as shown in FIG. 12, after S200, the method for displaying acandidate word according to this embodiment of the present invention mayfurther include:

S203. The display apparatus determines that the content in the clipboardis not updated.

S204. The display apparatus performs the method procedure shown in FIG.4, or displays a candidate word in a default candidate option area of aninput method in a general manner.

In this embodiment of the present invention, if the display apparatusdetermines that the content in the clipboard is not updated, that is,the user does not trigger a copying process, the display apparatus maydetermine the candidate word displayed in the default candidate optionarea of the input method by using the method procedure shown in FIG. 4in the foregoing embodiment, or the display apparatus may display thecandidate word in the default candidate option area of the input methodin a general manner (for example, the two manners shown in FIG. 1).

In the method for displaying a candidate word according to thisembodiment of the present invention, when the user triggers a copyingprocess, the user may need to paste copied content by using the inputmethod. Therefore, in the method for displaying a candidate wordaccording to this embodiment of the present invention, when the inputmethod is invoked, the candidate word displayed in the default candidateoption area of the input method may be determined according to whetherthe content in the clipboard is updated. That is, if the user triggers acopying process, the content in the clipboard is updated. Therefore, theupdated content in the clipboard may be displayed in the defaultcandidate option area of the input method (that is, the updated contentin the clipboard is displayed as the at least one candidate word in thedefault candidate option area of the input method). This can furtherimprove efficiency of the user in entering information by using theinput method.

As shown in FIG. 13, an embodiment of the present invention provides anapparatus for displaying a candidate word. The apparatus is applied to ascenario in which a user enters information by using an input method.The apparatus is configured to perform the steps performed by thedisplay apparatus in the foregoing method embodiment shown in FIG. 4 orFIG. 9. The apparatus may include modules corresponding to correspondingsteps. For example, the apparatus may include a lexicon selection module20 and a default candidate option module 21.

The lexicon selection module 20 is configured to determine a type of anapplication that invokes the input method, determine, according to thetype, dimension information corresponding to the type, and determine,according to the dimension information, a lexicon corresponding to thedimension information. The default candidate option module 21 isconfigured to display, in a default candidate option area of the inputmethod, at least one candidate word that is in the lexicon selected bythe lexicon selection module 20 and meets a preset condition.

It should be noted that, the apparatus for displaying a candidate wordin this embodiment may be the default candidate option recommendationmodule 12 in the input method shown in FIG. 2; the lexicon selectionmodule 20 in this embodiment may be the lexicon selection module 120 inthe input method shown in FIG. 2; and the default candidate optionmodule 21 may be the default candidate option module 121 in the inputmethod shown in FIG. 2.

Optionally, the lexicon selection module 20 is specifically configuredto determine, according to the type and a preset correspondence set, thedimension information corresponding to the type, where thecorrespondence set includes a correspondence between the type and thedimension information.

Optionally, one lexicon uniquely corresponds to one piece of dimensioninformation.

Optionally, in a first possible implementation, the type is a chat type,the dimension information is a date dimension, and the at least onecandidate word that meets the preset condition is: at least onecandidate word that is in the date lexicon and corresponds to a firstdate, where the first date is a date that is in the date lexicon and thesame as a current date.

Optionally, in a second possible implementation, the type is a chattype, the dimension information is a date dimension and a chat objectdimension, the lexicon is a date lexicon corresponding to the datedimension and a chat object lexicon corresponding to the chat objectdimension, and the at least one candidate word that meets the presetcondition is: at least one candidate word that is in the date lexiconand corresponds to a first date, where the first date is a date that isin the date lexicon and the same as a current date, a relationshipbetween the user and an object currently chatting with the user is afirst relationship in the chat object lexicon, and a bindingrelationship exists between the first date and the first relationship.

Optionally, in a third possible implementation, the type is a map type,the dimension information is a historical record dimension, the lexiconis a historical record lexicon corresponding to the historical recorddimension, and the at least one candidate word that meets the presetcondition is: at least one candidate word that is in the historicalrecord lexicon and corresponds to first latitude and longitude and theapplication, where the first latitude and longitude are latitude andlongitude that are in the historical record lexicon and the same aslatitude and longitude of a current location of the user.

Optionally, in a fourth possible implementation, the type is a commoditytype, an audio/video type, or an application market type, the dimensioninformation is a historical record dimension and a search popularitydimension, the lexicon is a historical record lexicon corresponding tothe historical record dimension and a search popularity lexiconcorresponding to the search popularity dimension, and the at least onecandidate word that meets the preset condition is: at least onecandidate word that is in the historical record lexicon and the searchpopularity lexicon and corresponds to the application, and whose searchfrequency is highest, and whose last search date is closest to a currentdate.

Optionally, the lexicon selection module 20 is further configured todetermine, before determining the type of the application that invokesthe input method, that content in a clipboard is updated; and thedefault candidate option module 21 is further configured to display, inthe default candidate option area of the input method, updated contentin the clipboard as the at least one candidate word.

In this embodiment of the present invention, in a specificimplementation, both the lexicon selection module and the defaultcandidate option module may be implemented by at least one processor.The default candidate option module may be specifically implemented by adisplay instructed by the processor.

It may be understood that, the apparatus for displaying a candidate wordin this embodiment may correspond to the display apparatus in the methodfor displaying a candidate word in the embodiment shown in FIG. 4 orFIG. 9, and division and/or functions of the modules in the apparatusfor displaying a candidate word in this embodiment is/are intended toimplement the method procedure shown in FIG. 4 or FIG. 9. To avoidrepetition, details are not further described herein.

This embodiment of the present invention provides an apparatus fordisplaying a candidate word. When the candidate word is displayed in thedefault candidate option area of the input method, the apparatus mayrefer to an application scenario of the input method, that is, by whichtype of application the input method is invoked, then determine thecorresponding dimension information according to the type of theapplication, and determine the lexicon corresponding to the dimensioninformation, that is, the lexicon is a lexicon that matches theapplication scenario of the input method. Therefore, it may be ensuredto some extent that candidate words determined from the lexicon may bewords that the user needs to enter, and further, the candidate words aredisplayed in the default candidate option area of the input method. Thiscan improve efficiency of the user in entering information by using theinput method.

As shown in FIG. 13, an embodiment of the present invention provides anapparatus for displaying a candidate word. The apparatus is applied to ascenario in which a user enters information by using an input method.The apparatus is configured to perform the steps performed by thedisplay apparatus in the foregoing method embodiment shown in FIG. 11 or

FIG. 12. The apparatus may include modules corresponding tocorresponding steps. For example, the apparatus may include a lexiconselection module 20 and a default candidate option module 21.

The lexicon selection module 20 is configured to determine that contentin a clipboard is updated; and the default candidate option module 21 isconfigured to display, in a default candidate option area of the inputmethod, updated content in the clipboard as at least one candidate wordaccording to a result determined by the lexicon selection module 20.

It should be noted that, the apparatus for displaying a candidate wordin this embodiment may be the default candidate option recommendationmodule 12 in the input method shown in FIG. 2; the lexicon selectionmodule 20 in this embodiment may be the lexicon selection module 120 inthe input method shown in FIG. 2; and the default candidate optionmodule 21 may be the default candidate option module 121 in the inputmethod shown in FIG. 2.

In this embodiment of the present invention, in a specificimplementation, both the lexicon selection module and the defaultcandidate option module may be implemented by at least one processor.The default candidate option module may be specifically implemented by adisplay instructed by the processor.

It may be understood that, the apparatus for displaying a candidate wordin this embodiment may correspond to the display apparatus in the methodfor displaying a candidate word in the embodiment shown in FIG. 11 orFIG. 12, and division and/or functions of the modules in the apparatusfor displaying a candidate word in this embodiment is/are intended toimplement the method procedure shown in FIG. 11 or FIG. 12. To avoidrepetition, details are not further described herein.

This embodiment of the present invention provides an apparatus fordisplaying a candidate word. After the user copies a piece of content,the user may paste the copied content. Therefore, in this embodiment ofthe present invention, when the input method is invoked, if theapparatus determines that the content in the clipboard is updated, theapparatus may display the updated content in the clipboard in thedefault candidate option area of the input method (that is, display theupdated content in the clipboard as the at least one candidate word inthe default candidate option area of the input method). Therefore,efficiency of the user in entering information by using the input methodcan be further improved.

An embodiment of the present invention provides an intelligent terminal,where multiple applications are installed in an operating system of theintelligent terminal. The multiple applications include an input method(also referred to as an input method application), an application of achat type, an application of a map type, an application of a commoditytype, an application of an audio/video type, an application of anapplication market type, and the like. The input method includes theapparatus for displaying a candidate word as shown in FIG. 13. Theapparatus may be configured to perform the method for displaying acandidate option as shown in FIG. 4, FIG. 9, FIG. 11, or FIG. 12.

The intelligent terminal may include at least one processor, aninterface circuit, a memory, and a system bus.

The memory is configured to store a computer-executable instruction. Theat least one processor, the interface circuit, and the memory areinterconnected by the system bus and communicate with each other. Whenthe intelligent terminal runs, the at least one processor executes thecomputer-executable instruction stored in the memory, so that theintelligent terminal performs the method for displaying a candidate wordas shown in FIG. 4, FIG. 9, FIG. 11, or FIG. 12. For a specific methodfor displaying a candidate word, refer to the descriptions about theembodiment shown in FIG. 4, FIG. 9, FIG. 11, or FIG. 12. Details are notfurther described herein.

The intelligent terminal may be an intelligent terminal device such as asmartphone, a tablet computer, a notebook computer, an ultra-mobilepersonal computer (English: ultra-mobile personal computer, UMPC), anetbook, or a personal digital assistant (English: personal digitalassistant, PDA). This embodiment of the present invention is describedby using an example in which the intelligent terminal is a smartphone.FIG. 14 shows a schematic block diagram of a part of a structure of asmartphone related to each embodiment of the present invention.

As shown in FIG. 14, the smartphone may specifically include componentssuch as a radio frequency (English: radio frequency, RF) circuit 30, amemory 31, an input unit 32, a display unit 33, an audio frequency unit34, a processor 35, a power supply 36, and an interface 37. A personskilled in the art may understand that the structure of the smartphoneshown in FIG. 14 does not constitute a limitation on the smartphone. Aspecific quantity of components included in the smartphone may begreater or less than that shown in FIG. 14, or some components arecombined, or different components are distributed in differentpositions.

The processor 35 may be the at least one processor. The memory 31 may bethe foregoing memory. The RF circuit 30, the input unit 32, the audiofrequency unit 34, the power supply 36, and the interface 37 may be theforegoing interface circuit. Connection lines connecting the componentsin FIG. 14 may be the foregoing system bus.

The following describes each component of the smartphone in detail withreference to FIG. 14.

The RF circuit 30 may be configured to receive or transmit signals in aninformation reception or transmission or call process, and inparticular, after receiving a downlink signal, transmit the downlinksignal to the processor 35 for processing, and in addition, transmit anuplink signal. Generally, the RF circuit includes but is not limited toan antenna, at least one amplifier, a transceiver, a coupler, a lownoise amplifier (English: low noise amplifier, LNA), a duplexer, or thelike. In addition, the RF circuit 30 may further communicate with anetwork and other devices through wireless communication. The wirelesscommunication may use any communications standard or protocol, includingbut not limited to the Global System for Mobile Communication (English:global system of mobile communication, GSM), general packet radioservice (English: general packet radio service, GPRS), Code DivisionMultiple Access (English: code division multiple access, CDMA), WidebandCode Division Multiple Access (English: wideband code division multipleaccess, WCDMA), Long Term Evolution (English: long term evolution, LTE),e-mail, short message service (English: short messaging service, SMS),and the like.

The memory 31 may be configured to store a software program and module.The processor 35 performs various function applications and signalprocessing of the smartphone by running the software program and modulestored in the memory 31. The memory 31 may mainly include a programstorage area and a data storage area. The program storage area may storean operating system of the smartphone, an application required by atleast one function (such as an application required by an informationinput function, namely, an input method application, an audio playingfunction, or an image playing function), or the like. The data storagearea may store data (such as a lexicon, audio data, image data, or aphone book created in a process of using the input method by a user)that is created according to usage of the smartphone, or the like. Inaddition, the memory 31 may include a high-speed random access memory,and may further include a non-volatile memory, for example, at least onemagnetic disk storage, a flash memory, or other volatile solid statememories.

The input unit 32 may be configured to receive input digit or characterinformation, and generate a key signal input related to a user settingand function control of the smartphone. Specifically, the input unit 32may include a touchscreen 321 and another input device 322. Thetouchscreen 321, also referred to as a touch panel, may capture a touchoperation of the user on or near the touchscreen (for example, anoperation performed by the user by using any appropriate object oraccessory such as a finger or a stylus on the touchscreen 321 or nearthe touchscreen 321), and drive a corresponding connection apparatusaccording to a preset program. Optionally, the touchscreen 321 mayinclude two parts: a touch detection apparatus and a touch controller.The touch detection apparatus detects a touch direction of the user,detects a signal generated by the touch operation, and transmits thesignal to the touch controller. The touch controller receives touchinformation from the touch detection apparatus, converts the touchinformation into touch point coordinates, and transmits the touch pointcoordinates to the processor 35, and can receive a command transmittedby the processor 35 and execute the command. In addition, thetouchscreen 321 may be implemented by using multiple types such asresistive, capacitive, infrared, and surface acoustic wave. The anotherinput device 322 may include but is not limited to one or more of aphysical keyboard, a function key (such as a volume control key or apower key), a trackball, a mouse, a joystick, or the like.

The display unit 33 may be configured to display information entered bythe user or information provided for the user and various menus of thesmartphone. The display unit 33 may include a display panel 331.Optionally, the display panel 331 may be configured in a form of aliquid crystal display (liquid crystal display, LCD), an organiclight-emitting diode (organic light-emitting diode, OLED), or the like.Further, the touchscreen 321 may cover the display panel 331. When thetouchscreen 321 detects a touch operation on or near the touchscreen,the touchscreen 321 transmits the touch operation to the processor 35 todetermine a type of a touch event. Afterward, the processor 35 providesa corresponding visual output on the display panel 331 according to thetype of the touch event. Although the touchscreen 321 and the displaypanel 331 are used as two independent components to implement input andoutput functions of the smartphone in FIG. 14, the touchscreen 321 andthe display panel 331 may be integrated to implement input and outputfunctions of the smartphone in some embodiments.

The audio frequency unit 34 includes an audio frequency circuit 341, aspeaker 342, and a microphone 343. The audio frequency unit 34 mayprovide an audio interface between the user and the smartphone. Theaudio frequency circuit 341 may transmit an electrical signal convertedfrom received audio data to the speaker 342, and the speaker 342converts the electrical signal into an audio signal for outputting. Onthe other hand, the microphone 343 converts a captured audio signal intoan electrical signal, and the audio frequency circuit 341 converts thereceived electrical signal into audio data, and then outputs the audiodata to the RF circuit 30; then the audio data is transmitted to anothersmartphone, or the audio data is output to the memory 31 for furtherprocessing.

The processor 35 is a control center of the smartphone. The processor 35uses various interfaces and lines to connect all parts of the entiresmartphone, and executes various functions and data processing of thesmartphone by running or executing the software program and modulestored in the memory 31 and invoking data stored in the memory 31,thereby implementing corresponding functions of the smartphone.Optionally, the processor 35 may include one or more processing units.Preferably, the processor 35 may integrate an application processor anda modem processor. The application processor mainly processes theoperating system, a user interface, an application, and the like. Themodem processor mainly processes wireless communication. It may beunderstood that the modem processor may also not be integrated with theprocessor 35.

The smartphone further includes the power supply 36 (such as a battery)supplying power to each component. Preferably, the power supply may belogically connected to the processor 35 by using a power managementsystem, so as to implement functions such as charge and dischargemanagement and power consumption management by using the powermanagement system.

The interface 37 may be configured to connect to another device, andtransmit data between the smartphone and the another device.

Optionally, the smartphone may further include a Wireless Fidelity(wireless fidelity, WiFi) module not shown in FIG. 14, a Bluetoothmodule, or the like. Details are not further described herein in thisembodiment of the present invention.

An embodiment of the present invention further provides acomputer-readable storage medium. The computer-readable storage mediumstores one or more programs, the one or more programs include acomputer-executable instruction, and when at least one processor of anintelligent terminal executes the computer-executable instruction, theintelligent terminal performs the method for displaying a candidate wordas shown in FIG. 4, FIG. 9, FIG. 11, or FIG. 12. For a specific methodfor displaying a candidate word, refer to the descriptions about theembodiment shown in FIG. 4, FIG. 9, FIG. 11, or FIG. 12. Details are notfurther described herein.

On one hand, when displaying a candidate word in a default candidateoption area of an input method, the intelligent terminal provided bythis embodiment of the present invention may refer to an applicationscenario of the input method, that is, by which type of application theinput method is invoked, then determine corresponding dimensioninformation according to the type of the application, and determine alexicon corresponding to the dimension information, that is, the lexiconis a lexicon that matches the application scenario of the input method.Therefore, it may be ensured to some extent that candidate wordsdetermined from the lexicon may be words that a user needs to enter, andfurther, the candidate words are displayed in the default candidateoption area of the input method. This can improve efficiency of the userin entering information by using the input method.

On the other hand, after the user copies a piece of content, the usermay paste the copied content. Therefore, in this embodiment of thepresent invention, if the intelligent terminal provided by thisembodiment of the present invention determines that content in aclipboard is updated, the intelligent terminal may display updatedcontent in the clipboard in the default candidate option area of theinput method (that is, display the updated content in the clipboard asat least one candidate word in the default candidate option area of theinput method). Therefore, efficiency of the user in entering informationby using the input method can be improved.

An embodiment of the present invention provides a graphical userinterface (graphical user interface, GUI) on a computer device. Thecomputer device has a display, a touch-sensitive surface, a memory, andone or more processors configured to execute one or more programs storedin the memory. The graphical user interface includes an applicationinterface, an input box, and an input method interface.

On one hand, in response to detecting that a user triggers a firstapplication, an application interface and a first input box of the firstapplication are displayed; and in response to detecting that the userselects the first input box, a first input method interface isdisplayed, where a default candidate option area of the first inputmethod interface includes a first group of default candidate words;

On the other hand, in response to detecting that the user triggers asecond application, an application interface and a second input box ofthe second application are displayed; and in response to detecting thatthe user selects the second input box, a second input method interfaceis displayed, where a default candidate option area of the second inputmethod interface includes a second group of default candidate words.

The first application and the second application are differentapplications, and the first group of default candidate words and thesecond group of default candidate words include different candidatewords. A quantity of candidate words included in the first group ofdefault candidate words is at least one, and a quantity of candidatewords included in the second group of default candidate words is also atleast one. That the first group of default candidate words and thesecond group of default candidate words include different candidatewords may mean that the first group of default candidate words and thesecond group of default candidate words include at least one differentcandidate word, or that the included candidate words are all different.

Detecting that the user triggers the first application or the secondapplication may be accepting the user's touch on an APP icon to start anAPP in the scenario shown in FIG. 15 (a), or may be another manner, forexample, switching, by using a gesture, an APP running on a backgroundto a screen for displaying. That the application interface and the firstinput box of the first application are displayed and that theapplication interface and the second input box of the second applicationare displayed may be specifically: the application interface and thefirst input box of the first application are not simultaneouslydisplayed on the screen with the application interface and the secondinput box of the second application; or the application interface andthe first input box of the first application, and the applicationinterface and the second input box of the second application aredisplayed in a split-screen manner, for example, displayed on an upperhalf part and a lower half part of the screen respectively.

Detecting that the user selects the first input box or the second inputbox may be detecting that the user presses the first input box or thesecond input box on a touchscreen, so that the input method interface isactivated to accept an input of the user.

Optionally, in this embodiment of the present invention, a type of thefirst application is a chat type, a map type, a commodity type, anaudio/video type, or an application market type; and a type of thesecond application is the chat type, the map type, the commodity type,the audio/video type, or the application market type.

It may be understood that, in this embodiment of the present invention,the first application and the second application may be two differentapplications of a same application type. For example, the firstapplication and the second application may be two different applicationsof the chat application type. The first application and the secondapplication may also be two different applications of differentapplication types. For example, the first application is an applicationof the chat application type, and the second application is anapplication of the map application type.

Optionally, the first group of default candidate words is updatedcontent in a clipboard; and/or the second group of default candidatewords is updated content in a clipboard. Specifically, for detaileddescriptions about a default candidate word being updated content in theclipboard, refer to the foregoing related descriptions in theembodiments shown in FIG. 9 to FIG. 12. Details are not furtherdescribed herein.

It should be noted that, the computer device in this embodiment may bethe intelligent terminal in the foregoing embodiment. For example, thecomputer device may be the smartphone in the foregoing embodiment shownin FIG. 14; the display of the computer device may be the display unit33 of the smartphone; the touch-sensitive surface of the computer devicemay be the touchscreen 321 of the smartphone; the memory and theprocessor of the computer device may be the memory 31 and the processor32 of the smartphone.

In addition, the first group of default candidate words and the secondgroup of default candidate words in this embodiment may be at least onecandidate word displayed in the default candidate option area of theinput method when the input method is invoked by applications ofdifferent types in the embodiments shown in FIG. 2 to FIG. 14.

Using FIG. 15 as an example, the following describes the graphical userinterface provided by this embodiment of the present invention. FIG. 15is described by using an example in which the computer device in thisembodiment is an intelligent terminal.

FIG. 15 (a) shows a home page of the intelligent terminal. The home pageincludes thumbnail icons of multiple applications, and the multipleapplications include a first application 40 and a second application 41.When the user triggers the first application 40 (for example, the usertaps a thumbnail icon of the first application 40), as shown in FIG. 15(b), the intelligent terminal detects that the user triggers the firstapplication 40, and in response to the trigger, the intelligent terminaldisplays an application interface 42 and a first input box 43 of thefirst application 40 on the display. When the user selects the firstinput box 43 (for example, the user taps the first input box 43), asshown in FIG. 15 (c), the intelligent terminal detects that the userselects the first input box 43, and in response to the selection, theintelligent terminal displays a first input method interface 44 (namely,an interface of a first input method, where the first input method isinvoked by the first application so that the intelligent terminaldisplays the first input method interface 44) on the display. Defaultcandidate option area A of the first input method interface 44 includesthe first group of default candidate words, for example, “Happy SpringFestival” and “good fortune” shown in FIG. 15 (c). When the usertriggers the second application 41 (for example, the user taps athumbnail icon of the second application 41), as shown in FIG. 15 (d),the intelligent terminal detects that the user triggers the secondapplication 41, and in response to the trigger, the intelligent terminaldisplays an application interface 45 and a second input box 46 of thesecond application 41 on the display. When the user selects the secondinput box 46 (for example, the user taps the second input box 46), asshown in FIG. 15 (e), the intelligent terminal detects that the userselects the second input box 46, and in response to the selection, theintelligent terminal displays a second input method interface 47(namely, an interface of a second input method, where the second inputmethod is invoked by the second application so that the intelligentterminal displays the second input method interface 47) on the display.Default candidate option area A of the second input method interface 47includes the second group of default candidate words, for example,“mobile power pack”, “router”, and “coffee” shown in FIG. 15 (e).

It should be noted that, after the user triggers the first application40 and selects the first input box 43 shown in FIG. 15, the user mayfirst press a “Home” key (namely, the Home key) to return to the homepage of the intelligent terminal, for example, as shown in FIG. 15 (a),and then the user triggers the second application 41 on the home page ofthe intelligent terminal to complete displaying of the applicationinterface 45 and the second input box 46 of the second application 41.

Further, in this embodiment of the present invention, after the usertriggers the first application, the display of the intelligent terminalmay display the application interface, the first input box, and thefirst input method interface of the first application. After the usertriggers the second application, the display of the intelligent terminalmay display the application interface, the second input box, and thesecond input method interface of the second application while displayingthe application interface, the first input box, and the first inputmethod interface of the first application. That is, the applicationinterface, the first input box, and the first input method interface ofthe first application, and the application interface, the second inputbox, and the second input method interface of the second application aredisplayed on one graphical user interface.

Certainly, in this embodiment of the present invention, after the usertriggers the first application, the display of the intelligent terminalmay display the application interface, the first input box, and thefirst input method interface of the first application. After the usertriggers the second application, the display of the intelligent terminalmay quit displaying the application interface, the first input box, andthe first input method interface of the first application, and displaythe application interface, the second input box, and the second inputmethod interface of the second application. That is, the applicationinterface, the first input box, and the first input method interface ofthe first application are displayed on one graphical user interface; andthe application interface, the second input box, and the second inputmethod interface of the second application are displayed on anothergraphical user interface. Specifically, this may be determined accordingto an actual use requirement, and is not limited in the presentinvention.

It should be noted that, for a specific implementation in which thefirst group of default candidate words is the updated content in theclipboard and/or the second group of default candidate words is theupdated content in the clipboard, it is only necessary to replace thedefault candidate words shown in FIG. 15 (c) and/or FIG. 15 (e) with theupdated content in the clipboard. For a specific schematic displaydiagram, refer to the default candidate words shown in FIG. 15 (c)and/or FIG. 15 (e). Details are not further described herein.

On the graphical user interface provided by this embodiment of thepresent invention, when the user triggers different applications,because input method interfaces displayed when input boxes on differentapplication interfaces are selected may include different defaultcandidate words, it may be ensured to some extent that the defaultcandidate words may be words that the user needs to enter in an inputbox; and further, the default candidate words are displayed in a defaultcandidate option area of the input method. This can improve efficiencyof the user in entering information by using the input method.

An embodiment of the present invention provides a graphical userinterface on a computer device. The computer device has a display, atouch-sensitive surface, a memory, and one or more processors configuredto execute one or more programs stored in the memory. The graphical userinterface includes an application interface, an input box, and an inputmethod interface.

In response to detecting that a user triggers content copying, copiedcontent is selected and displayed;

-   -   in response to detecting that the user triggers an application,        an application interface and an input box of the application are        displayed; and in response to detecting that the user selects        the input box, an input method interface is displayed, where a        default candidate option area of the input method interface        includes a group of default candidate words, and the group of        default candidate words is the copied content.

In this embodiment, the copied content is temporarily stored in aclipboard in a specific implementation, that is, original content in theclipboard is replaced with the copied content. Therefore, the copiedcontent is also the updated content in the clipboard.

For detailed descriptions about the application in this embodiment,refer to the descriptions about the application in each of the foregoingembodiments (including the foregoing method embodiments, apparatusembodiments, and graphical user interface embodiments). Details are notfurther described herein.

For detailed descriptions about the computer device, the display, thetouch-sensitive surface, the memory, and the processor in thisembodiment of the present invention, refer to related descriptions inthe foregoing graphical user interface embodiment. Details are notfurther described herein.

In addition, the group of default candidate words in this embodiment maybe at least one candidate word displayed in the default candidate optionarea of the input method when the input method is invoked byapplications of different types in the embodiments shown in FIG. 2 toFIG. 14.

Using FIG. 16 as an example, the following describes the graphical userinterface provided by this embodiment of the present invention. FIG. 16is described by using an example in which the computer device in thisembodiment is an intelligent terminal.

FIG. 16 (a) shows a display interface of the intelligent terminal. Whenthe user triggers the intelligent terminal to copy a piece of content,for example, “Toward the China dream” shown in FIG. 16 (a), theintelligent terminal detects that the user triggers content copying, andin response to the trigger, the intelligent terminal selects anddisplays the copied content on the display (that is, the copied contentis displayed in a manner of being selected; and in an internalimplementation, the copied content may be temporarily stored in theclipboard, that is, the copied content is updated content in theclipboard). FIG. 16 (b) shows a home page of the intelligent terminal.The home page includes thumbnail icons of multiple applications, and themultiple applications include an application 50. When the user triggersthe application 50 (for example, the user taps a thumbnail icon of theapplication 50), as shown in FIG. 16 (c), the intelligent terminaldetects that the user triggers the application 50, and in response tothe trigger, the intelligent terminal displays an application interface51 and an input box 52 of the application 50 on the display. When theuser selects the input box 52 (for example, the user taps the input box52), as shown in FIG. 16 (d), the intelligent terminal detects that theuser selects the input box 52, and in response to the selection, theintelligent terminal displays an input method interface 53 (that is, aninterface of an input method, where the input method is invoked by theapplication 50 so that the intelligent terminal displays the inputmethod interface 53) on the display. Default candidate option area A ofthe input method interface 53 includes a group of default candidatewords, and the group of default candidate words is the content (that is,the content selected and displayed by the intelligent terminal) that theuser triggers to copy as shown in FIG. 16 (a), for example, “Toward theChina dream” shown in FIG. 16 (d).

It should be noted that, the content that the user triggers theintelligent terminal to copy may be the content that the user triggersthe intelligent terminal to copy on the application interface of theapplication 50, or content that the user triggers the intelligentterminal to copy in any other case (for example, content that the usertriggers the intelligent terminal to copy on an application interface ofanother application as shown in FIG. 16 (a)). This is not specificallylimited in the present invention.

For example, as shown in FIG. 16 (a), after the user triggers theintelligent terminal to copy content on an application interface ofanother application different from the application 50, the user mayfirst press a “Home” key (namely, the Home key) to return to the homepage of the intelligent terminal, for example, as shown in FIG. 16 (b),and then the user triggers the application 50 on the home page of theintelligent terminal to complete displaying of the application interfaceand the input box of the application 50.

In this embodiment of the present invention, after the user triggers theintelligent terminal to perform copying, when the user triggers anapplication for the first time and selects an input box on anapplication interface of the application, a default candidate optionarea of an input method interface displayed by the intelligent terminalincludes content copied by the intelligent terminal (that is, thedefault candidate option area of the input method interface displayedfor the first time includes updated content only after content in theclipboard is updated).

On the graphical user interface provided by this embodiment of thepresent invention, after the user triggers the intelligent terminal tocopy a piece of content, the user may continue to trigger theintelligent terminal to paste the copied content. Therefore, in thisembodiment of the present invention, after the user triggers theintelligent terminal to perform copying, when the user triggers anapplication, because an input method interface displayed when an inputbox on an application interface of the application is selected mayinclude the content that the user triggers the intelligent terminal tocopy, the content that the user triggers the intelligent terminal tocopy is displayed in a default candidate option area of the inputmethod. This can improve efficiency of the user in entering informationby using the input method.

The foregoing descriptions about implementations allow a person skilledin the art to understand that, for the purpose of convenient and briefdescription, division of the foregoing functional modules is taken as anexample for illustration. In actual application, the foregoing functionscan be allocated to different modules and implemented according to arequirement, that is, an inner structure of an apparatus is divided intodifferent functional modules to implement all or part of the functionsdescribed above. For a detailed working process of the foregoing system,apparatus, and unit, refer to a corresponding process in the foregoingmethod embodiments, and details are not described herein again.

In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may beimplemented in other manners. For example, the described apparatusembodiment is merely an example. For example, the module or unitdivision is merely logical function division and may be other divisionin actual implementation. For example, a plurality of units orcomponents may be combined or integrated into another system, or somefeatures may be ignored or not performed. In addition, the displayed ordiscussed mutual couplings or direct couplings or communicationconnections may be implemented by using some interfaces. The indirectcouplings or communication connections between the apparatuses or unitsmay be implemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. Some or all of the units may be selected according toactual requirements to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of the presentinvention may be integrated into one processing unit, or each of theunits may exist alone physically, or two or more units are integratedinto one unit. The integrated unit may be implemented in a form ofhardware, or may be implemented in a form of a software functional unit.

When the integrated unit is implemented in the form of a softwarefunctional unit and sold or used as an independent product, theintegrated unit may be stored in a computer-readable storage medium.Based on such an understanding, the technical solutions of the presentinvention essentially, or the part contributing to the prior art, or allor some of the technical solutions may be implemented in the form of asoftware product. The software product is stored in a storage medium andincludes several instructions for instructing a computer device (whichmay be a personal computer, a server, a network device, or the like) toperform all or some of the steps of the methods described in theembodiments of the present invention. The foregoing storage mediumincludes: any medium that can store program code, such as a flashmemory, a removable hard disk, a read-only memory, a random accessmemory, a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of thepresent invention, but are not intended to limit the protection scope ofthe present invention. Any variation or replacement readily figured outby a person skilled in the art within the technical scope disclosed inthe present invention shall fall within the protection scope of thepresent invention. Therefore, the protection scope of the presentinvention shall be subject to the protection scope of the claims.

What is claimed is:
 1. An electronic device, comprising: a display; atleast one processor; and at least one memory, the at least one memorycomprising instructions that when executed by the at least oneprocessor, cause the electronic device to perform, at least, thefollowing: in response to detecting a first operation in a firstapplication, displaying a first application interface of the firstapplication, a first input box being shown as empty and a first inputmethod interface, and a first candidate option area, the first candidateoption area comprising first candidate options; and in response todetecting a second operation in a second application being differentfrom the first application, displaying a second application interface ofthe second application, a second input box being shown as empty and asecond input method interface, and a second candidate option area, thesecond candidate option area comprising second candidate options; and,wherein the first input method interface and the second input methodinterface are displayed by a same input method application, and thefirst candidate options are different from the second candidate options;the first candidate options are displayed before a user inputsinformation to the first input box, the second candidate options aredisplayed before a user inputs information to the second input box; thesecond candidate options comprise a group of emoticon; and the firstcandidate options comprise a group of words.
 2. The electronic deviceaccording to claim 1, wherein the first application is of a chat type,and the second application is of the chat type.
 3. The electronic deviceaccording to claim 1, wherein before a user starts to enter information,the candidate option area is referred to as a default candidate optionarea.
 4. The electronic device according to claim 1, wherein the firstcandidate options is updated content in a clipboard, and/or the secondcandidate options is updated content in a clipboard.
 5. The electronicdevice according to claim 2, wherein according to the type of the firstapplication, dimension information was determined corresponding to thetype of the application, wherein the dimension information includesmetadata information regarding the type of the application; andaccording to the dimension information, a lexicon was determinedcorresponding to the dimension information.
 6. The electronic deviceaccording to claim 5, wherein the type of the application is a chattype, the dimension information is a date dimension, the lexicon is adate lexicon corresponding to the date dimension, and at least onecandidate word that meets a following preset condition: the at least onecandidate word is in the date lexicon and corresponds to a first date,wherein the first date is a date that is in the date lexicon and thesame as a current date; or the type is a chat type, the dimensioninformation is a date dimension and a chat object dimension, the lexiconis a date lexicon corresponding to the date dimension and a chat objectlexicon corresponding to the chat object dimension, and the at least onecandidate word that meets a following preset condition: the at least onecandidate word is in the date lexicon and corresponds to a first date,wherein the first date is a date that is in the date lexicon and thesame as a current date, a binding relationship exists between the firstdate and a first relationship, and a relationship between a user and anobject currently chatting with the user is the first relationship in thechat object lexicon.
 7. The electronic device according to claim 6,wherein the type is a map type, the dimension information is ahistorical record dimension, the lexicon is a historical record lexiconcorresponding to the historical record dimension, and the at least onecandidate word meets a following preset condition: the at least onecandidate word is in the historical record lexicon and corresponds tofirst latitude and longitude, wherein the first latitude and longitudeare latitude and longitude in the historical record lexicon and are thesame as latitude and longitude of a current location of the user.
 8. Theelectronic device according to claim 7, wherein the type is a commoditytype, an audio/video type, or an application market type, the dimensioninformation is a historical record dimension and a search popularitydimension, the lexicon is a historical record lexicon corresponding tothe historical record dimension and a search popularity lexiconcorresponding to the search popularity dimension, and the at least onecandidate word that meets a following preset condition: the at least onecandidate word is in the historical record lexicon and the searchpopularity lexicon, and a search frequency of the at least one candidateword is highest in the lexicon, and a last search date of the at leastone candidate word is closest to a current date.
 9. A computer-readablestorage medium comprising instructions which, when executed by anelectronic device, cause the electronic device to carry out thefollowing: in response to detecting an operation in a first application,displaying a first application interface of the first application, afirst input box being shown as empty and a first input method interface,and a first candidate option area, the first candidate option areacomprising first candidate options; and in response to detecting anoperation in a second application being different from the firstapplication, displaying a second application interface of the secondapplication, a second input box being shown as empty and a second inputmethod interface, and a second candidate option area, the secondcandidate option area comprising second candidate options; and, whereinthe first input method interface and the second input method interfaceare displayed by a same input method application, and the firstcandidate options are different from the second candidate options; thefirst candidate options are displayed before a user inputs informationto the first input box, the second candidate options are displayedbefore a user inputs information to the second input box; the secondcandidate options comprise a group of emoticon; and the first candidateoptions comprising a group of words;
 10. The computer-readable storagemedium according to claim 9, wherein a type of the first application isa chat type, and a type of the second application is the chat type. 11.The computer-readable storage medium according to claim 9, wherein thefirst candidate options is updated content in a clipboard, and/or thesecond candidate options is updated content in a clipboard.
 12. Thecomputer-readable storage medium according to claim 9, wherein the firstcandidate options comprising a group of words.
 13. The computer-readablestorage medium according to claim 9, wherein before a user starts toenter information, the candidate option area is referred to as a defaultcandidate option area.
 14. The computer-readable storage mediumaccording to claim 9, wherein according to a type of the firstapplication, dimension information was determined corresponding to thetype of the application, wherein the dimension information includesmetadata information regarding the type of the application; according tothe dimension information, a lexicon was determined corresponding to thedimension information.
 15. A method for displaying a graphical userinterface on a computer device, wherein the computer device has adisplay, a touch-sensitive surface, a memory, and one or more processorsconfigured to execute one or more programs stored in the memory, and thegraphical user interface comprises an application interface, an inputbox, and an input method interface, wherein the method comprises: inresponse to detecting a first operation in a first application,displaying a first application interface of the first application, afirst input box being shown as empty and a first input method interface,and a first candidate option area, the first candidate option areacomprising first candidate options; and in response to detecting asecond operation in a second application being different from the firstapplication, displaying a second application interface of the secondapplication, a second input box being shown as empty and a second inputmethod interface, and a second candidate option area, the secondcandidate option area comprising second candidate options; and, whereinthe first application and the second application are differentapplications, and the first group of default candidate options and thesecond group of default candidate options comprise different candidateoptions.
 16. The method for displaying the graphical user interfaceaccording to claim 15, wherein a type of the first application is a chattype, a map type, a commodity type, an audio/video type, or anapplication market type; and a type of the second application is thechat type, the map type, the commodity type, the audio/video type, orthe application market type.
 17. The method of displaying the graphicaluser interface according to claim 15, wherein the first group of defaultcandidate options is updated content in a clipboard; and/or the secondgroup of default candidate options is updated content in a clipboard.18. The method for displaying the graphical user interface according toclaim 15, wherein the method further comprises: in response to the userinputted character string in the first input box or the second inputbox, displaying in the first candidate option area or the secondcandidate option area at least one of words or phrases corresponding tothe character string.
 19. The method for displaying the graphical userinterface according to claim 15, wherein the first input box being shownas empty.
 20. The method for displaying the graphical user interfaceaccording to claim 15, wherein the second input box being shown asempty.